import { Terminal } from '~/ui/components/Snippet';
import { Step } from '~/ui/components/Step';

import { BuildEnvironmentSwitch } from '../BuildEnvironmentSwitch';

## Set up an Android device with a development build

<BuildEnvironmentSwitch />

<Step label="1">

### Install EAS CLI

To build your app, you will need to install EAS CLI. You can do this by running the following command in your terminal:

<Terminal cmd={['$ npm install -g eas-cli']} />

</Step>

<Step label="2">

### Create an Expo account and login

To build your app, you will need to create an Expo account and login to the EAS CLI.

1. [Sign up](https://expo.dev/signup) for an Expo account.
2. Run the following command in your terminal to log in to the EAS CLI:
   <Terminal cmd={['$ eas login']} />

</Step>

<Step label="3">
### Configure your project

Run the following command to create an EAS config in your project:

<Terminal cmd={['$ eas build:configure']} />

</Step>

<Step label="4">
### Create a build

Run the following command to create a development build:

<Terminal cmd={['$ eas build --platform android --profile development']} />
</Step>

<Step label="5">
### Install the development build on your device

After the build is complete, scan the QR code in your terminal or open the link on your device. Tap **Install** to download the build on your device, then tap **Open** to install it.

</Step>
